home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / cruiser_effects_scripts / cruiser_shot_charge.lua next >
Encoding:
Text File  |  2007-01-25  |  6.0 KB  |  226 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_CRUISERSHOTCHARGE)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 2
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24. PT = Emitter.ParticleTypesParams[1]
  25. PT.IsEmitterLocked = false
  26. PT.DrawOrder = 2
  27. PT.Material = ENMAT_PARTICLE_LIGHT
  28.  
  29.  
  30. PT.TextureName = "cruiser_effect_rays.dds"
  31.  
  32. PT.ParticlesPerSecond = 15.0;
  33. PT.InitialNumberOfParticles = 0.0;
  34. PT.BaseLifeTime = 1.0;
  35. PT.BaseLifeTimeVariance = 0.0;
  36. PT.BaseSpeed = 1.0;
  37. PT.BaseSpeedVariance = 0.0;
  38. PT.BaseAngle = 3.0;
  39. PT.BaseAngleVariance = 6.0;
  40. PT.BaseAngleSpeed = 0.5;
  41. PT.BaseAngleSpeedVariance = 1.0;
  42. PT.BaseAngleSpeedDirection = 0;
  43. local vzbzd4 = D3DXVECTOR3:new(0.0,0.0,-1.0)
  44. PT.BaseDirection = vzbzd4
  45. vzbzd4:delete()
  46. PT.DirectionRelativeness = ENREL_PARENT
  47. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  48. PT.BaseDirectionVariance = vzbzd5
  49. vzbzd5:delete()
  50. local vzbzd6 = D3DXVECTOR3:new(0,0,0)
  51. PT.BasePosition = vzbzd6
  52. vzbzd6:delete()
  53. local vzbzd7 = D3DXVECTOR3:new(0,0,0)
  54. PT.BasePositionVariance = vzbzd7
  55. vzbzd7:delete()
  56. PT.BaseSize = 10.0;
  57. PT.BaseSizeVariance = 2.0;
  58.  
  59. -- color over time
  60. PT.ColorOverTimeR[1].TimePercent = 0.0;
  61. PT.ColorOverTimeR[1].Value = 0.5;
  62. PT.ColorOverTimeG[1].TimePercent = 0.0;
  63. PT.ColorOverTimeG[1].Value = 0.5;
  64. PT.ColorOverTimeB[1].TimePercent = 0.0;
  65. PT.ColorOverTimeB[1].Value = 0.5;
  66.  
  67. PT.ColorOverTimeR[2].TimePercent = 1.0;
  68. PT.ColorOverTimeR[2].Value = 0.5;
  69. PT.ColorOverTimeG[2].TimePercent = 1.0;
  70. PT.ColorOverTimeG[2].Value = 0.5;
  71. PT.ColorOverTimeB[2].TimePercent = 1.0;
  72. PT.ColorOverTimeB[2].Value = 0.5;
  73.  
  74. -- transparency over time
  75. PT.TransparencyOverTime[1].TimePercent = 0.0;
  76. PT.TransparencyOverTime[1].Value = 0.0;
  77.  
  78. PT.TransparencyOverTime[2].TimePercent = 0.3;
  79. PT.TransparencyOverTime[2].Value = 0.5;
  80.  
  81. PT.TransparencyOverTime[3].TimePercent = 1.0;
  82. PT.TransparencyOverTime[3].Value = 0.0;
  83.  
  84.  
  85. -- size over time
  86. PT.SizeOverTime[1].TimePercent = 0.0;
  87. PT.SizeOverTime[1].Value = 1.0;
  88.  
  89. PT.SizeOverTime[2].TimePercent = 1.0;
  90. PT.SizeOverTime[2].Value = 2.0;
  91.  
  92. -- Speed over time
  93. PT.SpeedOverTime[1].TimePercent = 0.0;
  94. PT.SpeedOverTime[1].Value = 10.0;
  95.  
  96. PT.SpeedOverTime[2].TimePercent = 1.0;
  97. PT.SpeedOverTime[2].Value = 10.0;
  98.  
  99. -- Tangent Speed over time
  100. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  101. PT.TangentSpeedOverTime[1].Value = 0.0;
  102.  
  103. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  104. PT.TangentSpeedOverTime[2].Value = 0.0;
  105.  
  106.  
  107. -- GravityAcceleration over time
  108. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  109. PT.GravityAccelerationOverTime[1].Value = 0.0;
  110.  
  111. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  112. PT.GravityAccelerationOverTime[2].Value = 0.0;
  113.  
  114. -- AngleSpeed over time
  115. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  116. PT.AngleSpeedOverTime[1].Value = 2.0;
  117.  
  118. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  119. PT.AngleSpeedOverTime[2].Value = 2.0;
  120.  
  121.  
  122.  
  123. PT = Emitter.ParticleTypesParams[2]
  124. PT.IsEmitterLocked = false
  125. PT.DrawOrder = 1
  126. PT.Material = ENMAT_SIMPLEPARTICLE
  127.  
  128.  
  129. PT.TextureName = "cruiser_effect_sparklecloud.dds"
  130.  
  131. PT.ParticlesPerSecond = 10.0;
  132. PT.InitialNumberOfParticles = 10.0;
  133. PT.BaseLifeTime = 2.0;
  134. PT.BaseLifeTimeVariance = 0.0;
  135. PT.BaseSpeed = 1.0;
  136. PT.BaseSpeedVariance = 0.0;
  137. PT.BaseAngle = 3.0;
  138. PT.BaseAngleVariance = 6.0;
  139. PT.BaseAngleSpeed = 0.5;
  140. PT.BaseAngleSpeedVariance = 0.5;
  141. PT.BaseAngleSpeedDirection = 0;
  142. local vzbzd8 = D3DXVECTOR3:new(0.0,0.0,-1.0)
  143. PT.BaseDirection = vzbzd8
  144. vzbzd8:delete()
  145. PT.DirectionRelativeness = ENREL_PARENT
  146. local vzbzd9 = D3DXVECTOR3:new(0.0,0.0,0.0)
  147. PT.BaseDirectionVariance = vzbzd9
  148. vzbzd9:delete()
  149. local vzbzd10 = D3DXVECTOR3:new(0,0,0)
  150. PT.BasePosition = vzbzd10
  151. vzbzd10:delete()
  152. local vzbzd11 = D3DXVECTOR3:new(5,5,5)
  153. PT.BasePositionVariance = vzbzd11
  154. vzbzd11:delete()
  155. PT.BaseSize = 3.0;
  156. PT.BaseSizeVariance = 2.0;
  157.  
  158. -- color over time
  159. PT.ColorOverTimeR[1].TimePercent = 0.0;
  160. PT.ColorOverTimeR[1].Value = 0.2;
  161. PT.ColorOverTimeG[1].TimePercent = 0.0;
  162. PT.ColorOverTimeG[1].Value = 0.4;
  163. PT.ColorOverTimeB[1].TimePercent = 0.0;
  164. PT.ColorOverTimeB[1].Value = 1.0;
  165.  
  166. PT.ColorOverTimeR[2].TimePercent = 1.0;
  167. PT.ColorOverTimeR[2].Value = 0.2;
  168. PT.ColorOverTimeG[2].TimePercent = 1.0;
  169. PT.ColorOverTimeG[2].Value = 0.4;
  170. PT.ColorOverTimeB[2].TimePercent = 1.0;
  171. PT.ColorOverTimeB[2].Value = 1.0;
  172.  
  173. -- transparency over time
  174. PT.TransparencyOverTime[1].TimePercent = 0.0;
  175. PT.TransparencyOverTime[1].Value = 0.0;
  176.  
  177. PT.TransparencyOverTime[2].TimePercent = 0.5;
  178. PT.TransparencyOverTime[2].Value = 0.3;
  179.  
  180. PT.TransparencyOverTime[3].TimePercent = 1.0;
  181. PT.TransparencyOverTime[3].Value = 0.0;
  182.  
  183.  
  184. -- size over time
  185. PT.SizeOverTime[1].TimePercent = 0.0;
  186. PT.SizeOverTime[1].Value = 1.0;
  187.  
  188. PT.SizeOverTime[2].TimePercent = 1.0;
  189. PT.SizeOverTime[2].Value = 3.0;
  190.  
  191. -- Speed over time
  192. PT.SpeedOverTime[1].TimePercent = 0.0;
  193. PT.SpeedOverTime[1].Value = 10.0;
  194.  
  195. PT.SpeedOverTime[2].TimePercent = 1.0;
  196. PT.SpeedOverTime[2].Value = 20.0;
  197.  
  198. -- Tangent Speed over time
  199. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  200. PT.TangentSpeedOverTime[1].Value = 0.0;
  201.  
  202. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  203. PT.TangentSpeedOverTime[2].Value = 0.0;
  204.  
  205.  
  206. -- GravityAcceleration over time
  207. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  208. PT.GravityAccelerationOverTime[1].Value = 0.0;
  209.  
  210. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  211. PT.GravityAccelerationOverTime[2].Value = 0.0;
  212.  
  213. -- AngleSpeed over time
  214. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  215. PT.AngleSpeedOverTime[1].Value = 2.0;
  216.  
  217. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  218. PT.AngleSpeedOverTime[2].Value = 0.0;
  219.  
  220.  
  221.  
  222.  
  223. --
  224. -- end particle system description
  225. --
  226.